package com.hrt.manage.product.service;

import java.util.List;

import com.hrt.bean.ProductInfor;
import com.hrt.bean.Resources;

public interface ProInforService {

	public void saveProduct(ProductInfor product);

	public List<ProductInfor> queryByPage(int pageIndex, int pageSize);

	public void deleteById(Long[] proIds);

	public ProductInfor getProductByid(Long proId);

	public void udateProduct(ProductInfor product);

	public Long totalCount();

	
	public List<ProductInfor> queryByProType(Long typeId);
	
	
	public List<ProductInfor> queryByProType(Long typeId, int pageIndex,
			int pageSize);

	public List<Resources> getProductResource(Long proId, Integer resType,
			int pageIndex, int pageSize);

	public List<Resources> getProductResource(Long proId, int pageIndex,
			int pageSize);

	public List<Resources> getProductResource(Long proId);

	public ProductInfor updateTotal(ProductInfor product);

	public List<ProductInfor> queryProducts(String itemCondition);

	public List<ProductInfor> listProduct();

	/**
	 * 重新计算库存
	 * 
	 * @param productInfor
	 * @return
	 */
	public Long computeTotal(ProductInfor productInfor);

}
